package com.wewins.fota.common.util;

import org.apache.log4j.Logger;

import java.io.Closeable;
import java.io.IOException;

public class IOUtil {
    private static Logger logger = Logger.getLogger(IOUtil.class.getName());

    public static void close(Closeable c) {
        if (c != null) {
            try {
                c.close();
            } catch (IOException e) {
                logger.error("may be failed to close closeable! e:", e);
            }
        }
    }
}
